# 提交脚本

SERVICE_NAME=music
comments=$1
if [ -z "$comments" ]; then
    comments="test"
fi

branch_name=$2
if [ -z "$branch_name" ]; then
    branch_name="master"
fi

echo 'page copy start'
cd page
rm -rf *
cd ..
cp -R musics/src/main/resources/static/. ./page
echo 'page copy ok \n'

echo "git commit start"
git add .
git commit -m comments
git push -u origin $branch_name
echo "git commit ok"

